package cn.csg.iotplatform.module.system.dal.mysql.dvattachment;

import cn.csg.iotplatform.framework.mybatis.core.mapper.BaseMapperX;
import cn.csg.iotplatform.module.system.dal.dataobject.dvattachment.DvAttachmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 物联备份附件 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface DvAttachmentMapper extends BaseMapperX<DvAttachmentDO> {


    void deleteByFlagId(String id);

    List<DvAttachmentDO> getSyncAttachment();

    void updateSyncStatus(String id);

    List<DvAttachmentDO> getAttachment(@Param("flagId") String flagId, @Param("jobTypeCode") String jobTypeCode);

    String getFileByUrl(@Param("flagId") String flagId, @Param("url") String url);
}